package com.tianyang.yukuaifuzs.common.interfaces;

import android.os.Environment;

import com.tianyang.yukuaifuzs.base.YkfApplication;

/**
 * Description：公共静态config
 * Created by 薛勇军 on 2018/6/11.
 */

public class CommonConfig {

    public static String APP_DIR_NAME = "com.tianyang.yukuaifu";

    public static String DIR_APP_NAME = android.os.Environment.getExternalStorageDirectory()
            .getAbsolutePath() + "/" + APP_DIR_NAME;

    public static String DIR_APP_CACHE = DIR_APP_NAME + "/cache";

    public final static String APP_ROOT_PATH = Environment.getExternalStorageDirectory().getAbsolutePath() + "/" + YkfApplication.getInstance().getPackageName();

    public final static String DOWNLOAD_DIR = "/downloadApp/";

    /**
     * 接口回调正常code
     */
    public final static String RET_OK = "200";
    /**
     * 在另一端登录，当前sessionId失效
     */
    public final static String OFFLINE = "7000";

    /**
     * 分页加载数据每页10条
     */
    public static final int PAGE_NUM = 1;
    public static final int PAGE_SIZE = 5;
    public static final int PAGE_SIZE_2 = 100;

    /**
     * 消息发送等待时间
     */
    public static final int SMS_SEC = 60;

    /**
     * intent传递
     */
    public static final String INTENT_BUNDLE = "bundle";
    public static final String INTENT_ISTRANSPUSH = "isTransPush";
    public static final String INTENT_ROUTER_EXTRAS = "routerExtras";
    public static final String INTENT_EXTRAS = "extras";

    /**
     * 微信支付回调
     */
    public static final String WX_PAY_RESULT_ACTION = "com.weixin.pay.result.action";
    public static final String WX_PAY_RESULT        = "wx_pay_result";

    public static final String SHARE_CONTENT = "不囤货当代理！注册即可推广，分享就能赚钱";
    public static final String SHARE_CONTENT2 = "好友邀你免费注册，立享新人好礼。移动收款秒到账，单笔最高5万";

    /**
     * 图片压缩值
     */
    public static final int LUBAN_COMPRESSSIZE = 1000;
    public static final String DATE_LONG_TERM = "9999-01-01";


    /**
     * 图片类型
     */
    public static final String TYPE_SHOPHEAD  = "shopHeadPic";
    public static final String TYPE_SHOPDESK  = "shopCashPic";
    public static final String TYPE_SHOPOUT  = "shopOut";
    public static final String TYPE_SHOPON  = "shopOnPic";
    public static final String TYPE_OTHER_ATTACHMENT  = "otherAttachmentPic";
    public static final String TYPE_IDFROPIC  = "shenfengzhengpic";
    public static final String TYPE_IDCONPIC  = "shenfengfanpic";
    public static final String TYPE_IDHANDPIC = "holdingCardPic";
    public static final String TYPE_CRDFROPIC = "bankcardpic";
    public static final String TYPE_LICENSEPIC = "licensePic";
    public static final String TYPE_BANKPASSPIC = "bankPassPic";
    public static final String TYPE_BANKPASSPIC2 = "bankPassPic2";
    public static final String TYPE_UNIDFROPIC = "unIdCardFrontImg";
    public static final String TYPE_UNIDCONPIC = "unIdCardBackImg";
    public static final String TYPE_UNHANDPIC = "unHandImg";
    public static final String TYPE_UNBANKCARDPIC = "unBankCardImg";
    public static final String TYPE_PROOFMCHNTPIC = "proofMchntImg";


    /**
     * 验证码发送类型
     */
    public static final String SMSTYPE_REGISTER = "4";//注册
    public static final String SMSTYPE_LOGIN = "2";//登录
    public static final String SMSTYPE_PASSWORD = "5";//忘记密码

    /**
     * 上拉加载更多状态
     */
    public static final String LOADMORECOMPLETE = "loadMoreComplete";
    public static final String LOADMOREEND = "loadMoreEnd";
    public static final String LOADMOREFAIL = "loadMoreFail";

    /*云闪付相关*/
    public static final String YSF_XYKHK = "upwallet://rn/rncredit";
    public static final String YSF_XYKSQ = "upwallet://applet?toLink=https%3A%2F%2Fshenka.95516.com%2Fupcoas-vue3%2Findex&encryptAppId=e106e9f71ec85fbf";
    public static final String YSF_XYKBG = "upwallet://applet?toLink=https%3A%2F%2Fservice.fpsd.unionpay.com%2Foauth%2Fbase_auth.do%3FappNo%3DZXCX01320001%26channelNo%3DQ000101&encryptAppId=8e58c4bd6ac9f9e3";
    public static final String YSF_SCAN  = "upwallet://native/scanCode";
    public static final String YSF_CZJF  = "upwallet://applet?toLink=https%3A%2F%2Fopen.95516.com%2Fs%2Fopen%2Fysfapplets%2FpaymentMobileApplet9%2Findex.html%23%2F%3Fv%3D202207071&encryptAppId=7c2b6cbc3c45da26";


    /*首页支付提示内容*/
    public static final String HOME_HTML_MSG = "<p style=\"font-size:18px;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;再次提醒各位用户，提高警惕，<span style=\"color:#C30D23;\">冒充公安、检察院、法院等国家执法、司法机关工作人员，</span>打电话给受害人，声称受害人的身份被冒用或涉嫌各类犯罪，要求配合执法检察，<span style=\"color:#C30D23;\">进而诱骗受害人将钱财转移到嫌疑人提供的指定账户。</span></p><p style=\"font-size:18px;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;近日，不少诈骗分子通过<span style=\"color:#C30D23;\">所有在电话里涉及案件问题、信用问题，特别是需要转账的都有可能是骗子行为，请仔细核实此类事件，确保财产安全。</span></p>";

    /**
     * requstCode
     */
    public static final int REQUESTCODE_PICKER_QRCODE = 10001;
    public static final int REQUESTCODE_CERTIFICATE_PICKER = REQUESTCODE_PICKER_QRCODE + 1;
    public static final int WEB_REQUESTCODE_FILE_CHOOSE = REQUESTCODE_CERTIFICATE_PICKER + 1;
    public static final int REQUESTCODE_IMAGE_PICKER = WEB_REQUESTCODE_FILE_CHOOSE + 1;
    public static final int REQUESTCODE_AUTH_BUSINESS = REQUESTCODE_IMAGE_PICKER + 1;
    public static final int REQUESTCODE_AUTH_BUSINESS_ALI = REQUESTCODE_AUTH_BUSINESS + 1;
    public static final int REQUESTCODE_AUTH_BUSINESS_WX = REQUESTCODE_AUTH_BUSINESS_ALI + 1;
    public static final int REQUESTCODE_AUTH_BUSINESS_BANK = REQUESTCODE_AUTH_BUSINESS_WX + 1;
    public static final int REQUESTCODE_AUTH_BUSINESS_BANK_CORPORATE = REQUESTCODE_AUTH_BUSINESS_BANK + 1;
    public static final int REQUESTCODE_UPDATE_BUSINESS_BANK = REQUESTCODE_AUTH_BUSINESS_BANK_CORPORATE + 1;
    public static final int REQUESTCODE_UPDATE_SETTLE_BANK = REQUESTCODE_UPDATE_BUSINESS_BANK + 1;
    public static final int REQUESTCODE_CAPTURE_PICKER = REQUESTCODE_UPDATE_SETTLE_BANK + 1;
    public static final int REQUESTCODE_BIND_CODE_CAPTURE = REQUESTCODE_CAPTURE_PICKER + 1;
    public static final int REQUESTCODE_CHOOSE_SOUND = REQUESTCODE_BIND_CODE_CAPTURE + 1;
    public static final int REQUESTCODE_AUTH_BUSINESS_BANK_UNINCORPORATE = REQUESTCODE_CHOOSE_SOUND + 1;
}
